package edu.uc.labs.MobilePrinting.GUI;

import javax.swing.*;
import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import edu.uc.labs.MobilePrinting.Configurator;
import java.awt.Image;
import java.awt.Toolkit;
import org.apache.log4j.Logger;


/**
 *
 * @author Matt Silbernagel
 */
public class PreferencesFrame extends JFrame {

    /**
	 * 
	 */
	private static final long serialVersionUID = -7542099135681690875L;
	private JLabel title;
    private static final int FRAME_WIDTH = 300;
    private static final int FRAME_HEIGHT = 400;
    private Configurator conf = new Configurator();
    private Logger logger = conf.getLogger();
    final String os = conf.getOS();


    /**
     * Constructs the frame.
     */
     public PreferencesFrame(){

         title = new JLabel("MobilePrinting Preferences");
         add(title, BorderLayout.NORTH);
         Image thisIcon = Toolkit.getDefaultToolkit().getImage(Configurator.CACHEDIR +
                                                               Configurator.DELIM + "icons" +
                                                               Configurator.DELIM + Configurator.TRAYICON);
         this.setIconImage(thisIcon);
         // This listener is shared among all components
         
         @SuppressWarnings("unused")
         class ChoiceListener implements ActionListener {
        	 @Override
             public void actionPerformed(ActionEvent event){
        		 logger.debug("Listener Activated");
             }
         }
         setSize(FRAME_WIDTH, FRAME_HEIGHT);
         this.setLocation(200, 200);
     }
}
